package com.demo.service;

import com.demo.entity.Student;
import com.mongodb.client.MongoCursor;
import org.bson.Document;

import java.util.List;

public interface IMGService {
    int insertMGOne();

    int insertStudent(Student student);

    int insertManyData();

    Document selectOne();

    List<MongoCursor<Document>> selectAll();

    List selectByName(String s);

    int updateByName(String name , String phone);

    int deleteByName(String name);

    int insertListStudent(List<Student> students);
}
